from flask import Flask, Blueprint
from apps.modules.admin.views.cms.tag import tag_bp
from apps.modules.admin.views.cms.category import category_bp
from apps.modules.admin.views.cms.post import post_bp
from apps.modules.admin.views.cms.page import page_bp
from apps.modules.admin.views.cms.chat import chat_bp
from apps.modules.admin.views.cms.comment import comment_bp
# 创建cms
cms_bp = Blueprint('cms', __name__, url_prefix='/cms')

def register_cms_bps(app: Flask):
    cms_bp.register_blueprint(tag_bp)
    cms_bp.register_blueprint(category_bp)
    cms_bp.register_blueprint(post_bp)
    cms_bp.register_blueprint(page_bp)
    cms_bp.register_blueprint(chat_bp)
    cms_bp.register_blueprint(comment_bp)